<com:TPanel Id="PortletEditMode" Style="border-bottom: 1px solid black; margin: 0px 0px 0px 0px; text-align: right;">
	<com:TImageButton OnClick="MoveButtonClicked" ImageURL="<%=$this->Page->getTheme()->getBaseUrl()%>/images/edit/page_next.gif" Text="<%[Move to another area]%>" />
	<com:TImageButton OnClick="UpButtonClicked" ImageURL="<%=$this->Page->getTheme()->getBaseUrl()%>/images/edit/page_up.gif" Text="<%[Move portlet up]%>" />
	<com:TImageButton OnClick="DownButtonClicked" ImageURL="<%=$this->Page->getTheme()->getBaseUrl()%>/images/edit/page_down.gif" Text="<%[Move portlet down]%>" />
	<com:TImageButton OnClick="PropertyButtonClicked" ImageURL="<%=$this->Page->getTheme()->getBaseUrl()%>/images/edit/application_form.png" Text="<%[Properties]%>" />
	<com:TImageButton OnClick="DeleteButtonClicked" ImageURL="<%=$this->Page->getTheme()->getBaseUrl()%>/images/edit/application_delete.png" Text="<%[Remove portlet]%>" Attributes.onclick="if(!confirm('<%= Prado::localize('Are you sure?') %>')) return false;" />
</com:TPanel>
<com:TPanel id="EditContent" GroupingText="<%[Image information]%>" DefaultButton="SaveImage" CssClass="cssform">
<table width="100%">
	<tr>
		<td><com:TLabel ForControl="ImageDivCssClass" Text="<%[Image box - CSS Class]%>" /><com:TTextBox id="ImageDivCssClass" Columns="20"/></td>
	</tr>
	<tr>
		<td><com:TLabel ForControl="ImageDivCssExtra" Text="<%[Image box - CSS extra]%>" /><com:TTextBox id="ImageDivCssExtra" Columns="20"/></td>
	</tr>
	<tr>
		<td><com:TLabel ForControl="ImageName" Text="<%[Image]%>" /><com:TDropDownList ID="ImageName" DataTextField="name" DataValueField="name" PromptText="<%[Select]%>" PromptValue="0" OnSelectedIndexChanged="dlImageNameChanged" AutoPostBack="true" /><com:TRequiredFieldValidator Id="ipImageVal" InitialValue="0" ControlToValidate="ImageName" ValidationGroup="ipImage" Display="Dynamic" Text="<%[You need to select a image]%>" ControlCssClass="input-error1" /></td>
	</tr>
	<tr>
		<td><com:TLabel ForControl="ImageUrl" Text="<%[Url]%>" /><com:TTextBox id="ImageUrl" Columns="30"/></td>
	</tr>
	<tr>
		<td><com:TLabel ForControl="ImagePage" Text="<%[Page]%>" /><com:TDropDownList ID="ImagePage" DataGroupField="path" DataTextField="displayname" DataValueField="fullpath" PromptText="<%[Select]%>" PromptValue="0" /></td>
	</tr>
	<tr>
		<td><com:TLabel ForControl="ImageCssClass" Text="<%[CSS class]%>" /><com:TTextBox id="ImageCssClass" Columns="20"/>
		</td>
	</tr>
	<tr>
		<td><com:TLabel ForControl="ImageCssExtra" Text="<%[CSS Extra]%>" /><com:TTextBox id="ImageCssExtra" Columns="20"/>
		</td>
	</tr>
	<tr>
		<td><com:TLabel ForControl="ImageWidth" Text="<%[Width]%>" /><com:TTextBox id="ImageWidth" Columns="4"/>
		</td>
	</tr>
	<tr>
		<td><com:TLabel ForControl="ImageHeight" Text="<%[Height]%>" /><com:TTextBox id="ImageHeight" Columns="4"/>
		</td>
	</tr>
	<tr>
		<td><com:TLabel ForControl="ImageBorder" Text="<%[Border]%>" /><com:TTextBox id="ImageBorder" columns="2"/>
		</td>
	</tr>
	<tr>
		<td><com:TLabel ForControl="ImageBorderColor" Text="<%[Border color]%>" /><com:TColorPicker Id="ImageBorderColor" Mode="Basic" Columns="8" />
		</td>
	</tr>
	<tr>
		<td><com:TLabel ForControl="FileUpload" Text="<%[File]%>" />
				<com:TFileUpload Id="FileUpload" OnFileUpload="OnFileUpload" /><br />
				<com:TButton BackColor="silver" Id="IpImageFile" Text="<%[Send]%>" ValidationGroup="ipImageUpload"/>
				<com:TRequiredFieldValidator Id="ipImageUploadVal" ValidationGroup="ipImageUpload" EnableClientScript="true" ControlToValidate="FileUpload" ErrorMessage="<%[Select a file.]%>" ControlCssClass="required-field" />
		</td>
	</tr>
	<tr>
		<td><hr />
		</td>
	</tr>
	<tr>
		<td><table =width="100%">
			<tr>
				<td><com:TLinkButton Id="SaveImage" Text="<%[Save]%>" CssClass="link-button" OnClick="SaveImage" ValidationGroup="ipImage" /></td>
				<td><com:TLinkButton Id="CancelContent" Text="<%[Cancel]%>" CssClass="link-button" OnClick="CancelContent" /></td>
			</tr>
			</table>
		</td>
	</tr>
</table>
</com:TPanel>